package com.framework.sec.util;


public class PlmSecConstant {
	
	/**
	 * 安全用户认证登陆相关错误的配置
	 */
	public static final String ACEGI_EXCEPTION_MAPPING_AUTHCODE_NOT_FOUND = "org.acegisecurity.userdetails.AuthCodeNotFound";
	public static final String ACEGI_EXCEPTION_MAPPING_AUTHCODE_NOT_FOUND_CODE = "01";
	public static final String ACEGI_EXCEPTION_MAPPING_RIGHT_NOT_FOUND = "org.acegisecurity.userdetails.RightNotFound";
	public static final String ACEGI_EXCEPTION_MAPPING_RIGHT_NOT_FOUND_CODE = "02";
	public static final String ACEGI_EXCEPTION_MAPPING_PASSWORD_ERROR = "org.acegisecurity.AuthenticationException";
	public static final String ACEGI_EXCEPTION_MAPPING_PASSWORD_ERROR_CODE = "03";
	public static final String ACEGI_EXCEPTION_MAPPING_ERROR_LOGIN = "org.acegisecurity.login.ErrorLoginExeption";
	public static final String ACEGI_EXCEPTION_MAPPING_ERROR_LOGIN_CODE = "04";
	public static final String ACEGI_EXCEPTION_MAPPING_ERROR_IMAGE = "org.acegisecurity.randomImage.errorExeption";
	public static final String ACEGI_EXCEPTION_MAPPING_ERROR_IMAGE_CODE = "05";
	public static final String ACEGI_LOGIN_TOO_MANY_TIMES = "org.acegisecurity.concurrent.ConcurrentLoginException";
	public static final String ACEGI_LOGIN_TOO_MANY_TIMES_CODE = "06";
	public static final String ACEGI_FILTER_EXCEPTION = "org.acegisecurity.Authentication.FilterException";
	public static final String ACEGI_EXCEPTION_MAPPING_COOPERATE_ERROR = "org.acegisecurity.AuthenticationException";
	public static final String ACEGI_EXCEPTION_MAPPING_COOPERATE_ERROR_CODE = "07";
	
	
	public static final String USER_AUTH_OBJ = "user_auth_obj_";
	public static final String LOGIN_USERNAME = "login_username_";
	public static final String LOGIN_IP = "login_ip_";
	
	/**
	 * 安全校验页面相关的参数配置
	 */
	public static final String SEC_JSP_LOGIN_ID = "j_username";
	public static final String SEC_JSP_PASSWORD_ID = "j_password";
	public static final String SEC_JSP_CHECK_IMAGE = "j_checkmark";
	public static final String SEC_JSP_SID="j_sid";
	public static final String COOKIE_IS_REMEMBER ="j_isremember";
	
	/**
	 * SESSION安全校验页面相关的参数配置
	 */
	public static final String SES_CHECK_MARK = "_ses_check_mark";
	
	/**
	 * 存储于GeneralParam中的VO对象KEY by wangy
	 */
	public static final String KEY_HP_SEC_MENU = "HpSecMenuVO";
	public static final String KEY_CHANGE_ROLE_CODE = "sys_change_role_code";
	public static final String KEY_REQUEST_CONTEXT = "sys_request_context";
	public static final String KEY_HP_ORG_RELATION ="HpOrgRelationVO";
	public static final String KEY_HP_ORG_COM_RES ="HpOrgComResVO";
	public static final String KEY_HP_ORG_COM_EXT ="HpOrgComExtVO";
	public static final String KEY_HP_SEC_PERMISSION="HpSecPermissionVO";
	public static final String KEY_HP_SEC_DETAIL="HpSecDetailVO";
	
	/**
	 * 默认管理人员账号
	 */
	public static final String DEFAULT_ADMIN_LOGINID="10#FJ##XM00001";
	
	/**
	 * 菜单授权常量
	 */
	public static final int AUTH_OBJ_TYPE_COMPANY=3;
	public static final String AUTH_OBJ_TYPE_ROLE = "0";  // 角色
	public static final int RES_TYPE_MENU=0;
	public static final String MENU_NAME_COMPANYMANAGER="0502";
	public static final String MENU_SYSFLAG_FOREG="0";
	public static final String MENU_SYSFLAG_BACK="1";
	public static final String MENU_SYSFLAG_FOREGANDBACK="2";
	
	/**
	 * 配置文件固定常量
	 */
	public static final String PROP_SYS_FLAG="app.sys";
	
	public static final String PROP_SYS_COOPERATE="app.cooperate";
	/**
	 * 授权对象类型
	 */
	public static final String IS_DEFAULT = "1";  // 是默认
	public static final String IS_NOTDEFAULT = "0";  // 不是默认
	
	/**
	 * 菜单是否叶子节点
	 */
	public static final String LEAF_FLAG_YES = "1";
	public static final String LEAF_FLAG_NO = "0";
	
	/**
	 * 本公司部门常量
	 */
	
	public static final String MYCOMPANYCODE="10000000010000000000";
	public static final String MYCOMPANYCODELIKE="1000000001%";
	public static final String MYCOMPANYCODE_ISMARKET="100000000103%";
	public static final String IS_MARKET= "1";
	/**
	 * 页面传入的参数
	 */
	public static final String SWITCH_ROLE_CODE = "switch_role_code";
	
	/**
	 * 菜单权限序列KEY
	 */
	public static final String HP_SEC_PERMISSION="SEQ_HP_SEC_PERMISSION";
	
	/**
	 * detail序列
	 */
	public static final String SEQ_SEC_DETAIL="SEQ_HP_SEC_DETAIL";
	/**
	 * IBATIS-SQL处理
	 * 
	 */
	public static final String SQLID_USER_MENURIGHT = "ehand_plm_sec.userMenuRightInfo";
	public static final String SQLID_USER_INFO = "ehand_plm_sec.userInfo";
	public static final String SQLID_USER_ROLE_INFO = "ehand_plm_sec.userRoleInfo";	
	public static final String SQLID_SEC_PARENT_MENU_SIZE = "ehand_plm_sec.upMenuCodeSize";
	public static final String SQLID_SEC_ROW_ORDER_SIZE = "ehand_plm_sec.rowOrderSize";
	public static final String SQLID_SEC_AGENTS="ehand_plm_sec.queryAgents";
	public static final String SQLID_SEC_AGENTS_SIZE="ehand_plm_sec.queryAgentSize";
	public static final String SQLID_SEC_AGENTSCR="ehand_plm_sec.queryAgentsCR";
	public static final String SQLID_SEC_AGENTSCR_SIZE="ehand_plm_sec.queryAgentCRSize";
	public static final String SQLID_SEC_RENTCOMPANYS="ehand_plm_sec.queryRentCompanys";
	public static final String SQLID_SEC_RENTCOMPANYS_SIZE="ehand_plm_sec.queryRentCompanySize";
	public static final String SQLID_SEC_RENTCOMPANYSAGENT="ehand_plm_sec.queryRentCompanysAgent";
	public static final String SQLID_SEC_RENTCOMPANYS_AGENT_SIZE="ehand_plm_sec.queryRentCompanyAgentSize";
	public static final String SQLID_SEC_RENTCOMPANYSCR="ehand_plm_sec.queryRentCompanysCR";
	public static final String SQLID_SEC_RENTCOMPANYSCR_SIZE="ehand_plm_sec.queryRentCompanyCRSize";
	public static final String SQLID_SEC_RENTBYAGENT="ehand_plm_sec.queryRentByAgent";
	public static final String SQLID_SEC_RENTBYAGENT_SIZE="ehand_plm_sec.queryRentByAgentSize";
	public static final String SQLID_SEC_DUTYROLE="ehand_plm_sec.queryBelongRoles";
	public static final String SQLID_SEC_DUTYROLE_SIZE="ehand_plm_sec.queryBelongRoleSize";
	public static final String SQLID_SEC_ROLE_MARKET="ehand_plm_sec.queryBelongRolesByMarket";
	public static final String SQLID_SEC_BELONG_USER="ehand_plm_sec.queryBelongUser";
	public static final String SQLID_SEC_BELONG_USER_COUNT="ehand_plm_sec.queryBelongUserCount";
	public static final String SQLID_SEC_CATALOG="ehand_plm_sec.queryCatalog";
	public static final String SQLID_SEC_CATALOG_SIZE="ehand_plm_sec.queryCatalogSize";
	public static final String SQLID_SEC_DETAIL="ehand_plm_sec.queryDetail";
	public static final String SQLID_SEC_DEL_DETAIL="ehand_plm_sec.deleteDetail";
	public static final String SQLID_SEC_DEL_SWITCHLOGON="ehand_plm_sec.deleteSwitchLogon";
	public static final String SQLID_OLDCUSTRENTSUMMARY="ehand_plm_sec.oldCustRentSummary";
	public static final String SQLID_NEWBLACKSUMMARY="ehand_plm_sec.newBlackSummary";
	public static final String SQLID_BELONGGRAYSUMMARY="ehand_plm_sec.belongGraySummary";
	public static final String SQLID_SYSNOTICEINFO="ehand_plm_sec.sysNoticeInfo";
	public static final String SQLID_SEC_ALLMENU="ehand_plm_sec.queryAllMenu";
	public static final String SQLID_NEWADDCOMPANYINFO="ehand_plm_sec.newAddCompanyInfo";
	public static final String SQLID_SEC_DELETE_OEM_USER = "ehand_plm_sec.deleteCooperUser";
	public static final String SQLID_SEC_SWITCH_LOGON="ehand_plm_sec.switchLogon";
	
	/**
	 *经销商，租凭公司常量
	 */
	public static final int AGENT=1;
	public static final String IS_AGENT_YES="1";
	public static final String IS_OEM_YES="1";
	public static final String IS_AGENT_NO="0";
	public static final String IS_OEM_NO="0";
	public static final int REN=1;
	/**
	 * 租凭公司所有用户数、角色数
	 */
	public static final long REN_ALL_ROLE=50;
	public static final long REN_ALL_USER=100;
	public static final long REN_ALL_COMPANY=50;
	/**
	 * 菜单类型  公共功能
	 */
	public static final String MENU_TYPE_COMMON ="0";
	/**
	 * 菜单类型  授权显示
	 */
	public static final String MENU_TYPE_PERMISSION_DISPLAY ="1";
	/**
	 * 菜单类型  授权不显示
	 */
	public static final String MENU_TYPE_PERMISSION_NOT_DISPLAY ="2";
	
	
	/**
	 * 母公司主键值长度
	 */
	public static final int INIT_MENU_KEY_LENGTH = 4;
	
	/*
	 * 用户切换角色交易
	 */
	public static final String SERVICE_ID_SEC0001 = "PLM03040101";
	
	public static final String ACEGI_LOGIN_IS_ALERT_ADVICE = "0";
	public static final String KEY_HP_SEC_LOGONUSEROBJECT = "LogonUserObject";
	
	/**
	 * 无法获取登陆用户信息
	 */
	public static final String MSG_0000 = "ehand.plm.sec.0000";
	
	/**
	 * 切换职位权限错误
	 */
	public static final String MSG_0001 = "ehand.plm.sec.0001";
	
	/**
	 * 无法获取登陆人员默认角色
	 */
	public static final String MSG_0002 = "ehand.plm.sec.0002";
	
	/**
	 * 无法获取用户交易菜单权限
	 */
	public static final String MSG_0003 = "ehand.plm.sec.0003";
	
	/**
	 * 无法获取登陆用户名
	 */
	public static final String MSG_0004 = "ehand.plm.sec.0004";
	
	/**
	 * 菜单名已存在
	 */
	public static final String MSG_0005 ="ehand.plm.sec.0005";
	
	/**
	 * 冷类代码
	 */
	public static final String CATALOG_CODE_RENT_MANAGER = "0001";
	public static final String CATALOG_CODE_RENT_OPERATOR = "0002";
	public static final String CATALOG_CODE_AGENT_MANAGER = "0003";
	public static final String CATALOG_CODE_AGENT_OPERATOR = "0004";
	public static final String CATALOG_CODE_CENTER = "0005";
	
	public static final String SEQ_SWITCH_LOGON = "SEQ_NHP_SWITCH_LOGON";
	public static final String MENU_VERSION_FLAG_OLD="0";//旧版上使用的菜单
	public static final String MENU_VERSION_FLAG_NEW="1";//新版上使用的菜单
}
